﻿@model InnoWeb.CEND.Core.Model.General.AboutPageContents

@{
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}


<script src="//tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<script type="text/javascript">
    tinymce.init({
        selector: "textarea"
    });
</script>
<!-- start content-outer -->
<div id="content-outer">
    <!-- start content -->
    <div id="content">


        <div id="page-heading">
            <h1>Edit Mission and Values</h1>
        </div>


        <table border="0" id="content-table">
            <tr>
                <th rowspan="3" class="sized">
                    <img src="~/Images/Admin/shared/side_shadowleft.jpg" width="20" height="300" alt="" />
                </th>
                <th class="topleft"></th>
                <td id="tbl-border-top">&nbsp;</td>
                <th class="topright"></th>
                <th rowspan="3" class="sized">
                    <img src="~/Images/Admin/shared/side_shadowright.jpg" width="20" height="300" alt="" />
                </th>
            </tr>
            <tr>
                <td id="tbl-border-left"></td>
                <td>
                    <!--  start content-table-inner -->
                    <div id="content-table-inner">

                        <table border="0">
                            <tr>
                                <td>


                                    <!--  start step-holder -->
                                    <div id="step-holder">
                                        <div class="step-no">1</div>
                                        <div class="step-dark-left">Edit Mission and Values</div>
                                        <div class="clear"></div>
                                    </div>
                                    <!--  end step-holder -->
                                    @using (Html.BeginForm("EditMissionValue", "AboutPage", FormMethod.Post, new { enctype = "multipart/form-data", name = "mainform", id = "mainform", onsubmit = "confirm(\"Successfully edited.\");" }))
                                    {
                                        @Html.AntiForgeryToken()
                                        @Html.ValidationSummary(true)

                                        <div style="visibility: hidden;">
                                            @Html.EditorFor(mod => mod.CareerText)
                                            @Html.EditorFor(mod => mod.CareerImage)
                                            @Html.EditorFor(mod => mod.ManagementTeamImage)
                                            @Html.EditorFor(mod => mod.ManagementTeamText)
                                            @Html.EditorFor(mod => mod.WhyCendImage)
                                            @Html.EditorFor(mod => mod.WhyCendText)
                                            @Html.EditorFor(mod => mod.TermsAndConditionsImage)
                                            @Html.EditorFor(mod => mod.TermsAndConditionsText)
                                            @Html.EditorFor(mod => mod.IsActive)
                                            @Html.EditorFor(mod => mod.IsDeleted)

                                            @Html.EditorFor(mod => mod.TermsAndConditionsTextTR)
                                            @Html.EditorFor(mod => mod.WhyCendTextTR)
                                            @Html.EditorFor(mod => mod.ManagementTeamTextTR)
                                            @Html.EditorFor(mod => mod.CareerTextTR)
                                            <input id="date-pick" name="AboutPageContents.CreatedDate" type="datetime" />
                                        </div>
                                        <!-- start id-form -->
                                        <table border="0" id="id-form">
                                            <tr>
                                                <th>Description:</th>
                                                <td>
                                                    @*<input type="text" class="inp-form-error" />*@
                                                    @*@Html.EditorFor(model => model.Description)*@
                                                    @Html.TextAreaFor(model => model.MissionText, new {rows="6", cols="30"})
                                                </td>
                                                <td>
                                                    <div class="error-left"></div>
                                                    <div class="error-inner">@Html.ValidationMessageFor(model => model.MissionText)
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>Description TR:</th>
                                                <td>
                                                    @*<input type="text" class="inp-form-error" />*@
                                                    @*@Html.EditorFor(model => model.Description)*@
                                                    @Html.TextAreaFor(model => model.MissionTextTR, new {rows="6", cols="30"})
                                                </td>
                                                <td>
                                                    <div class="error-left"></div>
                                                    <div class="error-inner">@Html.ValidationMessageFor(model => model.MissionTextTR)
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>Image:</th>
                                                <td>
                                                    @*<input type="file" class="file_1" name="ImageFile" id="AboutPageContents.MissionImage" />*@
                                                    @FileUpload.GetHtml(initialNumberOfFiles:1,allowMoreFilesToBeAdded:false,includeFormTag:false,addText:"Add File",uploadText:"Upload File")
                                                    @*@Html.TextBoxFor(a => a.ImageFile, new { type = "file" })*@


                                                </td>
                                                <td>
                                                    <div class="bubble-left"></div>
                                                    <div class="bubble-inner">JPEG, GIF 5MB max per image</div>
                                                    <div class="bubble-right"></div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th>&nbsp;</th>
                                                <td>
                                                    <input type="submit" value="" class="form-submit" />
                                                    <input type="reset" value="" class="form-reset" />
                                                </td>
                                                <td></td>
                                            </tr>
                                        </table>
                                        <!-- end id-form  -->
                                    }
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <img src="~/Images/Admin/shared/blank.gif" width="695" height="1" alt="blank" />
                                </td>
                                <td></td>
                            </tr>
                        </table>

                        <div class="clear"></div>


                    </div>
                    <!--  end content-table-inner  -->
                </td>
                <td id="tbl-border-right"></td>
            </tr>
            <tr>
                <th class="sized bottomleft"></th>
                <td id="tbl-border-bottom">&nbsp;</td>
                <th class="sized bottomright"></th>
            </tr>
        </table>

        <div class="clear">&nbsp;</div>

    </div>
    <!--  end content -->
    <div class="clear">&nbsp;</div>
</div>
<!--  end content-outer -->


